package com.tony.demo.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.tony.demo.R;

public class PhoneFragment extends Fragment {

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//		getActivity().findViewById(id);
		View view = inflater.inflate(R.layout.fragment_entity, container, false);

		TextView title = (TextView) view.findViewById(R.id.tv_entity_title);
		title.setText("This is PhoneFragment");
		return view;
	}

}
